CXXFLAG += -g

all : libmixThread.a

%.o : %.cpp
	g++ $(CXXFLAG) -c -o $@ $^

ALL_O = thread.o mutex.o condvar.o semaphore.o spinlock.o

libmixThread.a : $(ALL_O)
	ar rcs $@ $<

clean:
	rm *.o
	rm *.a
